#include <iostream>
using namespace std;

namespace unsigned_convert {
	int main(){
		unsigned int a=6;
		int b=-20;
		cout << "sizeof unsigned = "<<sizeof(unsigned int) <<" sizeof int = "<< sizeof(int)<<endl; 
		cout << a+b <<endl;
		return 0;
	}
}

namespace sizeof_test {
	class A{
		short a1,a2,a3;
	};
	class B{
		long a1;
		short a2;
	};
	int main(){
		char* ss1="0123456789";
		char ss2[]="0123456789";
		char ss3[]="abc\n";

		cout<<sizeof(ss1)<<endl;
		cout<<sizeof(ss2)<<endl;
		cout<<sizeof(ss3)<<endl;
		cout<<sizeof(long)<<endl;
		cout<<sizeof(short)<<endl;
		cout<<sizeof(A)<<endl;
		cout<<sizeof(B)<<endl;
		return 0;
	}
}

namespace alignment_test {
	int main(){
		int a;
		char b;
		int c;

		printf("0x%08x\n",&a);
		printf("0x%08x\n",&b);
		printf("0x%08x\n",&c);
		return 0;
	}
}
int main(){
	return alignment_test::main();
}


